package com.xbongbong.pro.draft.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 草稿获取传参
 *
 * @author GuoJun.HU
 * @date 2019/2/20 10:11
 * @since V1.0
 */
@Getter
@Setter
@ToString
public class DraftGetDTO extends BaseDTO {

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.draftDelete.appId.NotNull}")
    private Long appId;
    /**
     * 菜单id
     */
    @NotNull(message = "{dto.msg.draftDelete.menuId.NotNull}")
    private Long menuId;
    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.draftDelete.formId.NotNull}")
    private Long formId;
    /**
     * 区分SaaS和PaaS
     */
    @NotNull(message = "{dto.msg.draftDelete.saasMark.NotNull}")
    private Integer saasMark;
    /**
     * 区分SaaS的业务
     */
    private Integer businessType;

    public DraftGetDTO() {
        this.businessType = 0;
    }
}
